package com.cd.learn.cdlearn.pattern.decorator;

/**
 * 土豆丝装饰类
 */
public class TuDouSi extends PeiCai{

    private FastFood fastFood;

    public TuDouSi(FastFood fastFood){
        super(fastFood);
        this.fastFood = fastFood;
    }

    @Override
    public void showPrice() {
        fastFood.showPrice();
        System.out.println("我是土豆丝1！");
    }

    @Override
    public void decorator() {
        fastFood.decorator();
        System.out.println("我是土豆丝装饰者类！！");
    }
}
